import request from '@/utils/request'

// 查询项目标签配置列表
export function listDealTagType() {
  return request({
    url: '/deal/statistics/tagType/list',
    method: 'get'
  })
}

/**
 * 根据配置ID，级别，父ID查询标签列表
 * @return {AxiosPromise}
 */
export function listTagInfo(query) {
  return request({
    url: '/deal/statistics/tag/list',
    method: 'get',
    params: query
  })
}

export function listQuery(query) {
  return request({
    url: '/deal/statistics/query/list',
    method: 'get',
    params: query
  })
}

export function listDealData(query) {
  return request({
    url: '/deal/statistics/data/list',
    method: 'get',
    params: query
  })
}

export function listTrack(dealId) {
  return request({
    url: '/deal/statistics/track/list/' + dealId,
    method: 'get'
  })
}
